package org.ybxb.okhttp.core;

import okhttp3.Call;
import okhttp3.Connection;
import okhttp3.EventListener;

/**
 * @ProjectName: generator-report
 * @PackageName: org.ybxb.gr.core
 * @Description:
 * @Author: hy.bai
 * @Date: 2025-07-09 10:07
 */
public class ConnectionPoolEventListener extends EventListener {
    @Override
    public void connectionAcquired(Call call, Connection connection) {
        System.out.println("Connection acquired: " + connection.socket());
    }

    @Override
    public void connectionReleased(Call call, Connection connection) {
        System.out.println("Connection released: " + connection.socket());
    }
}
